
package edu.tongji.jiaowu.service.impl;
 
import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.MajorDirectionDao;
import edu.tongji.jiaowu.service.MajorDirectionManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class MajorDirectionManagerImpl extends BaseManagerImpl implements MajorDirectionManager {
        private MajorDirectionDao majorDirectionDao;

	
	public CommonBean createMajorDirection(){
                return majorDirectionDao.createMajorDirection();		
	}
	
/*
	public CommonBean findMajorDirections(String refid) {
                return majorDirectionDao.findMajorDirections(refid);
       }
*/
	public CommonBean findMajorDirectionById(String id){
                return majorDirectionDao.findMajorDirectionById(id);
       }	
	public CommonBean findValidMajorDirections() {
                return majorDirectionDao.findValidMajorDirections();
       }
	public void insertMajorDirection(CommonBean majorDirectionBean){
               majorDirectionDao.insertMajorDirection(majorDirectionBean);
	}
	public void updateMajorDirection(CommonBean majorDirectionBean){
               majorDirectionDao.updateMajorDirection(majorDirectionBean);
	}
	
	public MajorDirectionDao getMajorDirectionDao(){
		return majorDirectionDao;
        }	
        
  public void setMajorDirectionDao(MajorDirectionDao majorDirectionDao){
          this.majorDirectionDao=majorDirectionDao;	
  }        		
}

